package com.itbaizhan.openhis.mapper;

import com.itbaizhan.openhis.domain.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author MR
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Mapper
* @createDate 2025-06-29 21:52:25
* @Entity com.itbaizhan.openhis.domain.Menu
*/
public interface MenuMapper extends BaseMapper<Menu> {
	//根据角色ID查询菜单ID集合
	List<Long> queryMenuIdsByRoleId(@Param("roleId") Long roleId);
	//根据菜单ID删除角色菜单关系
	void deleteRoleMenuByMenuIds(@Param("ids") List<Long> ids);
	//根据菜单ID查询是否有子菜单
	int queryChildByMenuId(Long menuId);
}




